package work.repository;

import work.entity.Borrow;

import java.util.List;

public interface BorrowRepository {
    int insertBorrow(Borrow borrow);
    int updateBorrow(Borrow borrow);
    List<Borrow> selectByUser(String userId);
    List<Borrow> selectByBookId(String bookId);
    List<Borrow> selectSomeBorrow(Borrow borrow);
    List<Borrow> selectSomeBorrow1(Borrow borrow);
    Borrow selectByUserIdAndBookId(String userId, String bookId);
    Borrow selectByBorrowId(String borrowId);
}
